package Tz;/*


1111



*/

public class Test {

    public void service(Dive dive){
       dive.dive();

    }
    public void service1(Sprint sprint){
      sprint.sprint();

    }
    public void service2(Shoot shoot){
      shoot.shoot();

    }
    public void service3(Dive dive,Sprint sprint,Shoot shoot) {
        dive.dive();
        shoot.shoot();
        sprint.sprint();
      }
    private void service3(AllAthlete allAthlete) {
            allAthlete.dive();
            allAthlete.shoot();
            allAthlete.sprint();
    }
    public static void main(String[] args) {
       Test test=new Test();
       test.service(new DiveTt("张三",10));
       test.service1(new SprintKk("小名",12));
       test.service2(new ShootOb("汪汪",20));
       test.service3(new AllAthlete("小小",10));
    }


}
